package test.gen.core;

import gen.core.utils.NameUtils;
import junit.framework.TestCase;

public class GenUtilsTestCase extends TestCase {
	public void testconvert1(){
		assertEquals("dataObjectName", NameUtils.convert1("DATA_OBJECT_NAME"));
		assertEquals("dataObjectName", NameUtils.convert1("DATA_OBJECT__NAME"));
		assertEquals("tDataObjectName", NameUtils.convert1("T_DATA_OBJECT__NAME"));
	}

	public void testconvert2(){
		assertEquals("DataObjectName", NameUtils.convert2("DATA_OBJECT_NAME"));
		assertEquals("DataObjectName", NameUtils.convert2("DATA_OBJECT__NAME"));
		assertEquals("TDataObjectName", NameUtils.convert2("T_DATA_OBJECT__NAME"));
	}
}
